package com.example.api.mapper;

import com.example.api.model.entity.Code;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CodeMapper {
    
    void insert(Code code);
    
    void update(Code code);
    
    void deleteByEmail(@Param("email") String email);
    
    Code findByEmailAndValue(@Param("email") String email, @Param("value") String value);
    
    Code findByEmail(@Param("email") String email);
    
    void delete(Code code);
}
